Integrand size = 23, antiderivative size = 44 \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=-\frac {\log \left (1+\frac {e}{d x}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac {b n \operatorname {PolyLog}\left (2,-\frac {e}{d x}\right )}{e} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2375, 2438} \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\frac {b n \operatorname {PolyLog}\left (2,-\frac {e}{d x}\right )}{e}-\frac {\log \left (\frac {e}{d x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e} \]
[In]
[Out]
Rule 2375
Rule 2438
Rubi steps \begin{align*} \text {integral}& = -\frac {\log \left (1+\frac {e}{d x}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac {(b n) \int \frac {\log \left (1+\frac {e}{d x}\right )}{x} \, dx}{e} \\ & = -\frac {\log \left (1+\frac {e}{d x}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac {b n \text {Li}_2\left (-\frac {e}{d x}\right )}{e} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.43 \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\frac {\left (a+b \log \left (c x^n\right )\right ) \left (a+b \log \left (c x^n\right )-2 b n \log \left (1+\frac {d x}{e}\right )\right )}{2 b e n}-\frac {b n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{e} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 181, normalized size of antiderivative = 4.11
method | result | size |
risch | \(-\frac {b \ln \left (x^{n}\right ) \ln \left (d x +e \right )}{e}+\frac {b \ln \left (x^{n}\right ) \ln \left (x \right )}{e}-\frac {b n \ln \left (x \right )^{2}}{2 e}+\frac {b n \ln \left (d x +e \right ) \ln \left (-\frac {d x}{e}\right )}{e}+\frac {b n \operatorname {dilog}\left (-\frac {d x}{e}\right )}{e}+\left (-\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}-\frac {i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{2}+b \ln \left (c \right )+a \right ) \left (-\frac {\ln \left (d x +e \right )}{e}+\frac {\ln \left (x \right )}{e}\right )\) | \(181\) |
[In]
[Out]
\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x^{2}} \,d x } \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 6.04 (sec) , antiderivative size = 173, normalized size of antiderivative = 3.93 \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\frac {2 a d \left (\begin {cases} - \frac {x}{e} - \frac {1}{2 d} & \text {for}\: d = 0 \\\frac {\log {\left (2 d x \right )}}{2 d} & \text {otherwise} \end {cases}\right )}{e} - \frac {2 a d \left (\begin {cases} \frac {x}{e} + \frac {1}{2 d} & \text {for}\: d = 0 \\\frac {\log {\left (2 d x + 2 e \right )}}{2 d} & \text {otherwise} \end {cases}\right )}{e} + b n \left (\begin {cases} - \frac {1}{d x} & \text {for}\: e = 0 \\\frac {\begin {cases} \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\\log {\left (d \right )} \log {\left (x \right )} + \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {for}\: \left |{x}\right | < 1 \\- \log {\left (d \right )} \log {\left (\frac {1}{x} \right )} + \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\left (d \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\left (d \right )} + \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {otherwise} \end {cases}}{e} & \text {otherwise} \end {cases}\right ) - b \left (\begin {cases} \frac {1}{d x} & \text {for}\: e = 0 \\\frac {\log {\left (d + \frac {e}{x} \right )}}{e} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )} \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x^{2}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x^{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx=\int \frac {a+b\,\ln \left (c\,x^n\right )}{x^2\,\left (d+\frac {e}{x}\right )} \,d x \]
[In]
[Out]